<?php
/**注意此文档为UTF-8的编码.
 * Created on 2010-5-29
 *
 * @author EXT <isrn@qq.com>
 *
 */
include ('../includes/global.php');
include ('./global.php');
include ("./power.php");

$xajax = new xajax("./ajax/xajax_Form.php");
//$xajax->setFlag('decodeUTF8Input',true);
$xajax->configure('javascript URI', Js_path."/Plug-in/xajax/");
$xajax->registerFunction("loadUrl");
$xajax->registerFunction("items_config");
$Tp->assign('ajax',$xajax->getJavascript());
$tree_config=Dgd(array(
		  'db'=>'d_sevenel',
		  'tn'=>"tree",
		  'cd'=>"parentid = 0 and del != '1' and is_show=1 order by px asc"
		  ));

//print_r($_SESSION);
if($_SESSION['rcg']=="A"){
$tree_config_num=count($tree_config);
Tr(Sys::Gv(),'site_config');
Tr($tree_config_num,'tree_config_num');
Tr($tree_config,'tree_config');
	}else{
//print_r($configss);
foreach($tree_config as $value){
		if($_SESSION['rcg']['xr'][$value['id']]){
			$configss[]=$value;
			}
	}
$tree_config_num=count($configss);
Tr(Sys::Gv(),'site_config');
Tr($tree_config_num,'tree_config_num');
Tr($configss,'tree_config');
		}
//print_r($_SESSION);
Ts('index.html');

?>
